from parser import suite
from coment import log_set
from BeautifulReport import BeautifulReport
import unittest
from coment import sende_mail

if __name__ == '__main__':
    log_set()
    suite=unittest.defaultTestLoader.discover(start_dir='', pattern='test*.py')
    runder=BeautifulReport(suite)
    runder.report(description="测试报告", filename='baogao.html', report_dir='')

    sende_mail(['baogao.html','log,txt'])

